<template>
	<view>
		<view v-for="item in 10" :key="item" class="white-box margin32" @click="goPage('/views/mine/detail')">
			<view class="flex between user">
				<view class="flex">
					<image :src="IMAGE_URL + '/static/login/bg.png'" class="avatar"></image>
					<view class="time font24">4小时前</view>
				</view>
				<view class="flex font24">
					<view class="flex">
						<i class="iconfont icon-del"></i>
						<view>下架</view>
					</view>
					<view class="flex">
						<i class="iconfont icon-edit1"></i>
						<view>修改价格</view>
					</view>
				</view>
			</view>
			<view class="flex start item-content font28">
				<image :src="IMAGE_URL + '/static/login/bg.png'" class="cover"></image>
				<view class="flex column between" style="height: 200rpx;flex: 1;">
					<view style="width: 100%;">
						<view class="font28 fontbold-500">巴旦木去核奶枣零食夹心</view>
						<view class="flex start font24 num">
							<i class="iconfont icon-eye"></i>
							<view>99</view>
						</view>
					</view>
					<view class="flex between" style="width: 100%;">
						<view class="flex price">
							<text class="font28">￥</text>
							<text class="font36">63</text>
							<text class="font28">.10</text>
						</view>
						<view class="num font24">4人想要</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import appConfig from '@/config/app.js'
export default {
  data() { return { IMAGE_URL: appConfig.IMAGE_URL } }
}
</script>

<style lang="scss" scoped>
	.margin32 {
		margin: 0 32rpx;
	}
	
	.white-box {
		background: $uni-bg-color;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
		border-radius: 20rpx;
		padding: 28rpx;
		box-sizing: border-box;
		margin-bottom: 28rpx;

		.user {
			color: $uni-text-color-grey1;
			border-bottom: 1rpx solid #DDDDDD;
			padding-bottom: 28rpx;
			box-sizing: border-box;
			margin-bottom: 28rpx;

			.avatar {
				width: 40rpx;
				height: 40rpx;
				border-radius: 50%;
				margin-right: 16rpx;
			}

			.time {
				color: $uni-text-color-grey;
			}

			.iconfont {
				font-size: 32rpx;
				color: $uni-text-color-grey1;
				margin: 0 4rpx 0 20rpx;
			}
		}

		.item-content {
			image {
				margin-right: 20rpx;
				width: 200rpx;
				height: 200rpx;
				border-radius: 16rpx;
			}
			
			.fontbold-500 {
				margin-bottom: 24rpx;
			}
			
			.price {
				color: $uni-text-color-red;
				align-items: baseline;
			}
			
			.iconfont {
				color: $uni-text-color-grey;
				margin-right: 4rpx;
			}
			
			.num {
				color: $uni-text-color-grey;
			}
		}
	}
</style>